import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

import useRooms from '@/views/mobile/consulting/rooms/useRooms.vue'; // 临床诊室屏
import useRoom from '@/views/mobile/consulting/room/useRoom.vue'; // 临床诊室屏——不展示科室名称
import useTreatment from '@/views/mobile/consulting/treatments/useRoom.vue'; // 医技诊室屏——不展示医生信息
import useDataPush from '@/views/screens/wating/useDataPush/useDataPush.vue'; // 治疗室——不展示科室名称
import useWins from '@/views/screens/pharmacy/useWins.vue'; // 治疗室——不展示科室名称

const Routers = [
  {
    path: '/',
    name: 'home',
    meta: { title: '默认路由', desc: '默认路由' },
    component: useWins
  },
  {
    path: '/teatment',
    name: 'teatmentPage',
    meta: { title: '医技诊室屏', desc: '通用版-医技诊室屏-不展示医生信息' },
    component: useTreatment
  },
  {
    path: '/rooms',
    name: 'roomsPage',
    meta: { title: '临床诊室屏', desc: '通用版-诊室屏' },
    component: useRooms
  },
  {
    path: '/room',
    name: 'roomPage',
    meta: { title: '临床诊室屏', desc: '通用版-诊室屏-不展示科室' },
    component: useRoom
  },
  {
    path: '/dataPush',
    name: 'dataPushPage',
    meta: { title: '接口推送候诊屏', desc: '接口推送候诊屏' },
    component: useDataPush
  }
];

// 创建路由实例
const createRouter = () =>
  new Router({
    scrollBehavior: () => ({ y: 0 }),
    routes: Routers
  });

// 导出路由实例
export default createRouter();
